using System;
using ACS.Compiler.Tables.Modes;

namespace ACS.Compiler.Tables
{
    public class DataField
    {
        private string _namespace;
        private string _name;
        private Mode mode;

        public DataField(string ns, string name, Mode mode)
        {
            _namespace = ns;
            _name = name;
            this.mode = mode;
        }

        public string Namespace
        {
            get { return _namespace; }
        }

        public string Name
        {
            get { return _name; }
        }

        public Mode Mode
        {
            get { return mode; }
        }

        /// <summary>
        /// namespace ignored
        /// </summary>
        public string ToDeclareFormat()
        {
            return Mode.ToDeclareFormat() + " " + Name;
        }
    }
}
